<?php
defined('SYS_RUN') or exit();

class Lib extends Singleton {
    private static $_instance = null;

    public static function get($class, $params = array()) {
        if(self::$_instance == null) {
            self::$_instance = new self();
        }

        self::$_instance->_includeLib($class);
        return self::$_instance->_getObject($class, $params);
    }

    protected function getPath() {
        return 'sys/library/';
    }

    protected function getClassFilePattern() {
        return '{class}/class.{class}.inc.php';
    }

    protected function getClassPrefix() {
        return '';
    }
}